package com.openapi.common.utils;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 */
public class PageUtilsOrderManagement implements Serializable {
	private static final long serialVersionUID = 1L;
	// 总记录数
	private Long total;
	// 消费金额
	private BigDecimal payFeeSum;
	// 优惠金额
	private BigDecimal couponFeeSum;
	// 列表数据
	private List<?> rows;

	/**
	 * 分页
	 *
	 * @param list 列表数据
	 * @param total 每页记录数
	 * @param payFeeSum  消费金额
	 * @param couponFeeSum  优惠金额
	 */
	public PageUtilsOrderManagement(List<?> list, Long total, BigDecimal payFeeSum, BigDecimal couponFeeSum) {
		this.rows = list;
		this.total = total;
		this.payFeeSum = payFeeSum;
		this.couponFeeSum = couponFeeSum;
	}

	public long getTotal() {
		return total;
	}

	public void setTotal(Long total) {
		this.total = total;
	}

	public List<?> getRows() {
		return rows;
	}

	public void setRows(List<?> rows) {
		this.rows = rows;
	}

	public BigDecimal getPayFeeSum() {
		return payFeeSum;
	}

	public void setPayFeeSum(BigDecimal payFeeSum) {
		this.payFeeSum = payFeeSum;
	}

	public BigDecimal getCouponFeeSum() {
		return couponFeeSum;
	}

	public void setCouponFeeSum(BigDecimal couponFeeSum) {
		this.couponFeeSum = couponFeeSum;
	}

	@Override
	public String toString() {
		return "PageUtilsOrderManagement{" +
				"total=" + total +
				", payFeeSum=" + payFeeSum +
				", couponFeeSum=" + couponFeeSum +
				", rows=" + rows +
				'}';
	}
}
